package com.zhuoshi.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhuoshi.bean.WdPayType;
import com.zhuoshi.mapper.WdPayTypeMapper;
import com.zhuoshi.service.WdPayTypeService;




@Service
public class WdPayTypeServiceImpl implements WdPayTypeService{
	@Autowired
    private WdPayTypeMapper wdPayTypeMapper;

	@Override
	public List<WdPayType> findAll() {
		List<WdPayType> findAllList = wdPayTypeMapper.findAll();  
	     return findAllList; 

	}
	
	  public void save(WdPayType wdpaytype) {  
		  wdPayTypeMapper.save(wdpaytype);  
	    }

	@Override
	public boolean update(WdPayType wdpaytype) {
		return wdPayTypeMapper.update(wdpaytype); 	
	}

	@Override
	public WdPayType findById(String pay_type_id) {
		// TODO Auto-generated method stub
		WdPayType wdpaytype = wdPayTypeMapper.findById(pay_type_id);  
        return wdpaytype;
	}

	public boolean delete(String pay_type_id) {
		return wdPayTypeMapper.delete(pay_type_id);
		// TODO Auto-generated method stub
		
	}
//冯强
	@Override
	public List<WdPayType> selectAll(WdPayType wbean) {
		// TODO Auto-generated method stub
		return wdPayTypeMapper.selectAll(wbean);
	}

}
